﻿using ManagementCMS.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Weixin.Core.config
{
    /// <summary>
    /// 微信基本配置
    /// </summary>
    public class WxConfig
    {

        /// <summary>
        /// 
        /// </summary>
        public static string AppId = UtilsBase.GetAppValueByName("AppId");

        /// <summary>
        /// 
        /// </summary>
        public static string AppSecret { get; set; } = UtilsBase.GetAppValueByName("AppSecret");

        /// <summary>
        /// 
        /// </summary>
        public static string EncodingAESKey { get; set; } = UtilsBase.GetAppValueByName("EncodingAESKey");

        /// <summary>
        /// 
        /// </summary>
        public static string Token { get; set; } = UtilsBase.GetAppValueByName("Token");

        /// <summary>
        /// 商户号
        /// </summary>
        public static string MchId { get; set; } = UtilsBase.GetAppValueByName("MchId");

        /// <summary>
        /// 
        /// </summary>
        public static string Key { get; set; } = UtilsBase.GetAppValueByName("Key");

        /// <summary>
        /// 
        /// </summary>
        public static string WxOauthUrl { get; set; }= UtilsBase.GetAppValueByName("WxOauthUrl");


        /// <summary>
        /// 证书位置
        /// </summary>
        public static string Cert { get; set; } = UtilsBase.GetAppValueByName("Cert");

        /// <summary>
        /// 证书密码
        /// </summary>
        public static string CertPassword { get; set; } = UtilsBase.GetAppValueByName("CertPassword");

    }
}
